package com.lzx.answer.service;

import com.lzx.answer.entity.Report;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lzx.answer.entity.vo.ReportParams;
import com.lzx.common.utils.R;

/**
 * <p>
 * 用户举报表 服务类
 * </p>
 *
 * @author lzx
 * @since 2023-01-05
 */
public interface ReportService extends IService<Report> {

    //用户举报问题
    R reportProblem(Report report);

    //根据用户id查询用户是否举报了当前这个问题
    R getUserIsReportProblem(int userId, int problemId);

    //获取举报列表
    R getReportList(int current, int size);

    //审核举报
    R auditReport(Long id, String message);

    //搜索
    R searchReport(ReportParams reportParams);
}
